﻿#include "testthread2.h"

TestThread2::TestThread2(QObject *parent) : QThread(parent)
{
    number = 0;
}

void TestThread2::run()
{
    while(1)
    {
        emit TestSignal(number); // 发送信号
        number++;
        sleep(1);
    }
}

void TestThread2::ResetSlot()
{
    number = 0;
    emit TestSignal(number);
}
